package org.redis.cluster.redis.processor;

import org.redis.cluster.processor.RedisReplyProcessor;
import org.redis.cluster.redis.transport.RedisReply;
import org.redis.cluster.redis.transport.reply.RedisByteReply;

public class RedisByteReplyProcessor implements RedisReplyProcessor<RedisByteReply> {

	@Override
	public byte[] process(RedisByteReply reply) {
		return reply.getValue();
	}

	@Override
	public Class<? extends RedisReply> getSupportClass() {
		return RedisByteReply.class;
	}

}